package com.baidu.sqa;

import org.apache.commons.lang.StringUtils;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * User: howard
 * Date: 17/01/13
 * Time: 16:40
 */
public class HelloWorldServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String helloWorlds = "hello world from idea22!!!";
        resp.getWriter().write(StringUtils.center(helloWorlds,1));

    }
}
